#include "debug.h"
#include "lcd.h"
#include "img_love.h"

int main(void)
{
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    Delay_Init();
    USART_Printf_Init(115200);
    printf("SystemClk:%d\r\n", SystemCoreClock);

    LcdInit();

    LcdFill(0, 0, 80, 160, C_WHITE);

    LcdShowPicture(20, 60, 40, 40, gImage_img_love);

    LcdDrawLine(0, 0, 40, 40, C_BLACK);
    LcdDrawLine(80, 0, 40, 40, C_BLACK);

    LcdDrawCircle(40, 40, 10, C_BLACK);
    LcdFillCircle(40, 40, 10, C_RED);

    while(1) {
        //do nothing
    }
}
